package com.iot.device.domain;

import com.iot.common.annotation.Excel;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.iot.common.core.domain.BaseEntity;

/**
 * 事件源数据对象 t_gas_event_origin
 * 
 * @author iot
 * @date 2023-04-14
 */
public class GasEventOrigin extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 终端编号 */
    @Excel(name = "终端编号")
    private String clientNo;

    /** 事件ID */
    @Excel(name = "事件ID")
    private Long eventId;

    /** 原始ID */
    @Excel(name = "原始ID")
    private Long originEventId;

    /** 数据 */
    @Excel(name = "数据")
    private String data;

    /** 16进制源数据 */
    @Excel(name = "16进制源数据")
    private String hexData;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setClientNo(String clientNo) 
    {
        this.clientNo = clientNo;
    }

    public String getClientNo() 
    {
        return clientNo;
    }
    public void setEventId(Long eventId) 
    {
        this.eventId = eventId;
    }

    public Long getEventId() 
    {
        return eventId;
    }
    public void setOriginEventId(Long originEventId) 
    {
        this.originEventId = originEventId;
    }

    public Long getOriginEventId() 
    {
        return originEventId;
    }
    public void setData(String data) 
    {
        this.data = data;
    }

    public String getData() 
    {
        return data;
    }
    public void setHexData(String hexData) 
    {
        this.hexData = hexData;
    }

    public String getHexData() 
    {
        return hexData;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("clientNo", getClientNo())
            .append("eventId", getEventId())
            .append("originEventId", getOriginEventId())
            .append("data", getData())
            .append("hexData", getHexData())
            .append("createTime", getCreateTime())
            .append("remark", getRemark())
            .toString();
    }
}
